import { createRouter, createWebHashHistory } from 'vue-router'
import Home from '../views/Home.vue'
import Login from "../views/Login"
import Register from "../views/Register"
import Details from "../views/Details"/*
import Index from "../views/index"*/
import NavBar from "../components/NavBar"
import Article from "../views/Article"
import Dynamic from "../views/Dynamic"
import My from "../views/My"
import Shop from "../views/Shop"
import Set from "../views/Set"
import Out from "../views/Out"
import MyForm from "../views/MyForm";
import PlayVideo from "../views/PlayVideo";
import Music from "../views/Music";
import MV from "../views/MV";
import Fans from "../views/Fans";
import UploaderVideo from "../views/UploaderVideo";
import VideoAdd from "../views/VideoAdd";
const routes = [
  {
    path: '/VideoAdd',
    component: VideoAdd

  },
  {
    path: '/UploaderVideo',
    component: UploaderVideo
  },
  {
    path: '/Music',
    component: Music
  },
  {
    path: '/Fans',
    component: Fans
  },
  {
    path: '/MV',
    component: MV
  },
  {
    path: '/PlayVideo',
    component: PlayVideo
  },
  {
    path: '/MyForm',
    component: MyForm
  },
  {
    path: '/Out',
    component: Out
  },
  {
    path: '/Set',
    component: Set
  },
  {
  path: '/Article',
      component: Article
  },
  {
    path: '/Dynamic',
    component: Dynamic
  },
  {
    path: '/My',
    component: My
  },
  {
    path: '/Shop',
    component: Shop
  },
  {
    path: '/NavBar',
    component: NavBar
  },
  {
    path:'/Login',
    component:Login
  },
  {
    path:'/register',
    component:Register
  },
/*  {
    path:'/Index',
    component:Index
  },*/
  {
    path:'/details',
    component:Details
  },
  {
    path: '/',
    name: Home,
    component: Home
  },

]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
